import {http} from '../utils'
exports.getAdvList = function (type) {
  return http({
    type:'get',
    url:`/Config/Adv/List?type=${type}`,
  })
}
exports.getAdvDetail = function (id) {
  return http({
    type:'get',
    url:`/Config/Adv?id=${id}`,
  })
}

exports.reviseAdv = function (id, data) {
  return http({
    type:'put',
    url:`/Config/Adv?id=${id}`,
    data: data
  })
}

exports.addAdv = function (data) {
  return http({
    type:'post',
    url:`/Config/Adv`,
    data: data
  })
}
exports.deleteAdv = function (id) {
  return http({
    type:'delete',
    url:`/Config/Adv?id=${id}`
  })
}
